﻿@model IEnumerable<string>

<a class="btn btn-block @(ViewBag.SelectedCategory==null?"btn-primary":"btn-secondary")" asp-action="Index" asp-controller="Product" asp-route-category="">Home</a>

@foreach (var item in Model)
{
    <a class="btn btn-block @(item==ViewBag.SelectedCategory?"btn-primary":"btn-secondary")" asp-action="Index" asp-controller="Product" asp-route-category="@item" asp-route-productPage="1">@item</a>
}
